home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / Technical.Notes / Misc / TN.MISC.015 < prev    next >
Encoding:
Text File  |  1990-01-23  |  1.8 KB  |  43 lines  |  [TEXT/pdos]

  1. Apple II
  2. Technical Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5.  
  6.  
  7. Apple II Miscellaneous
  8. #15:    Compatibility Across Apple II Models
  9.  
  10. Written by:    Dave Lyons                                        January 1990
  11.  
  12. This Technical Note explains how you can get in big trouble by using a soft 
  13. switch before checking to make sure it exists on the particular Apple II model 
  14. being used.
  15. _____________________________________________________________________________
  16.  
  17. When a soft switch location is defined on one Apple II model but not others, 
  18. it is not safe to read the soft switch and later decide whether to use the 
  19. value that was read.  The following two examples demonstrate the hazards of 
  20. this method.
  21.  
  22. An application must read KEYMODREG ($C025) only after determining that it is 
  23. running on an Apple IIGS (using IDROUTINE at $FE1F).  Reading KEYMODREG and 
  24. later ignoring the result if not on an Apple IIGS does not work.
  25.  
  26. NEWVIDEO ($C029) is also defined only on the Apple IIGS.  Again, an 
  27. application must know that it is running on an Apple IIGS before reading or 
  28. writing this location.  (If your application uses double-high resolution, 
  29. check for an Apple IIGS before attempting to set the monochrome-double-hires 
  30. bit in NEWVIDEO.)
  31.  
  32. Both of these locations are reserved on the Apple IIc Plus, and reading from 
  33. or writing to them currently causes the Apple IIc Plus ROM to be swapped out 
  34. and replaced by additional ROM, instantly killing your application.
  35.  
  36.  
  37. Further Reference
  38. _____________________________________________________________________________
  39.   o  Apple IIGS Hardware Reference
  40.   o  Apple IIe Technical Reference Manual
  41.   o  Apple IIc Technical Reference Manual, Second Edition
  42.   o  Miscellaneous Technical Note #7, Apple II Family Identification
  43.